package UIComponents.Messages
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import Classes.GameUtils.GU_btnToMC;

	/**
	 * 接受按扭类 
	 * @author 邓坚
	 * 
	 */	
	public class BtnJiSo extends MovieClip
	{
		public var _id:uint;
		public function BtnJiSo()
		{
			addListener();
		}
	
		public function addListener():void
		{
			GU_btnToMC.addListener(this);
			addEventListener(MouseEvent.CLICK,clickHandler);
		}
		
		public function clickHandler(e:Event):void
		{
			dispatchEvent( new PanelEvent("clickbtn",_id,true,false,"btnjiso"));
		}
	}
}